using System;
using System.Collections.Generic;
using System.Text;

using CMS.Core.DataInterfaces;
using CMS.Core.Domain;
using CMS.Data;

namespace CMS.Presenters.Presenters
{
    public class HomePresenter
    {
        private IChucNangDao cnDao;

        public HomePresenter(IChucNangDao cnDao)
        {
            this.cnDao = cnDao;

        }

        public String GetChucNangByID(Int32 maChucNang)
        {
            String result = String.Empty;
            ChucNang entity = null;

            entity = cnDao.GetById(maChucNang);
            if (entity != null)
            {
                result = entity.DuongDan;
            }

            return result;
        }
    }
}
